package com.hserver.docker.dao;

import cn.hserver.plugin.beetlsql.annotation.BeetlSQL;
import com.hserver.docker.bean.Record;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.Sql;
import org.beetl.sql.mapper.annotation.Update;


/**
 * @author hxm
 */
@BeetlSQL
public interface RecordMapper extends BaseMapper<Record> {

    @Update
    @Sql("update record set status = ?  where id=?")
    void updateStatus(@Param("p")String status, @Param("p1")String id);


    @Update
    @Sql("update record set status = ?,end_time=? where id=?")
    void updateStatus(@Param("p")String status,@Param("p1")Integer time,@Param("p2")String id);

}
